package cn.com.aiouyi.controller.admin;

import javax.annotation.Resource;

import org.springframework.stereotype.Controller;
import org.springframework.ui.ModelMap;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import cn.com.aiouyi.page.Pageable;
import cn.com.aiouyi.service.MemberService;

/**
 * Controller - 用户
 * @author hanson
 *
 */
@Controller("adminMemberController")
@RequestMapping("/admin/member")
public class MemberController extends BaseController{

	@Resource(name = "memberServiceImpl")
	private MemberService memberService;
	
	@GetMapping("/list")
	public String list(Pageable pageable, ModelMap model){
		
		model.put("page", memberService.findPage(pageable));
		return "/admin/member/list";
	}
	
}
